﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SimpleGameEngine
{
    public static class GameKeyboard
    {
        public static bool Left = false;
        public static bool Right = false;
        public static bool Fire = false;

        public static void KeyDown(Keys keys)
        {
            if (keys == Keys.Left) Left = true;
            if (keys == Keys.Right) Right = true;
            if (keys == Keys.Space) Fire = true;

        }

        public static void KeyUp(System.Windows.Forms.Keys keys)
        {
            if (keys == Keys.Left) Left = false;
            if (keys == Keys.Right) Right = false;
            if (keys == Keys.Space) Fire = false;
        }
    }
}
